{include file="header.html"}
<div id="rightTop">
    <p><b>{$lang.order_detail}</b>&nbsp;&nbsp;<input type="button" class="formbtn" value="打印订单" onclick="javascript:window.open('{url app=order&act=view&id=$order.order_id&print=1}');">
	<!--{if $order.status eq ORDER_ACCEPTED}--><a  href="javascript:;" class="formbtn" style="display:inline-block; text-align:center; text-decoration:none;" ectype="dialog" dialog_title="{$lang.shipped_order}" dialog_id="order_shipped" uri="{url app=order&amp;act=shipped&amp;order_id=$order.order_id&ajax=1}"  dialog_width="580">填写发货</a><!--{/if}-->
    <!--{if $order.status eq ORDER_SHIPPED}--><a  href="javascript:;" class="formbtn" style="display:inline-block; text-align:center; text-decoration:none;" ectype="dialog" dialog_title="{$lang.shipped_order}" dialog_id="order_shipped" uri="{url app=order&amp;act=shipped&amp;order_id=$order.order_id&ajax=1}"  dialog_width="580">修改发货</a><!--{/if}-->
        &nbsp;&nbsp;<input class="formbtn" type="button" onclick="javascript:history.back();" value="返回" /></p>
</div>
<div class="info">
    <div class="demand">
    </div>
    <div class="order_form">
        <h1>{$lang.order_status}</h1>
        <ul>
            <li><b>{$lang.order_sn}:</b>{$order.order_sn}{if $order.extension eq 'groupbuy'}[{$lang.groupbuy}]{/if}&nbsp;&nbsp;&nbsp;<!--{if $order.group_id}-->[<a href="{$js_site_url}/index.php?app=groupbuy&id={$order.group_id}" target="_blank">{$lang.groupbuy_detail}</a>]<!--{/if}--></li>
            <li><b>{$lang.order_status}:</b> {$order.status|modifier:order_status}</li>
            <li>
                商品交易金额({$order.goods_amount}) + 运费({$order.shipping_fee}) – 免邮({$order.free_shipping}) – 优惠金额({$order.discount}) = 
                <b>{$lang.order_amount}:</b>
                <span class="red_common">{$order.order_amount|price}</span> 
            </li>
            <!--{if $order_money.account_money > 0 and $order_money.pay_money > 0}-->
            <li>
                <b>礼品卡支付金额:</b> <span class="red_common">{$order_money.account_money|price}</span>&nbsp;&nbsp;&nbsp;&nbsp;
                <b>支付工具支付金额:</b> <span class="red_common">{$order_money.pay_money|price}</span>
            </li>
            <!--{/if}-->
            
        </ul>
        <div class="clear"></div>
    </div>
    <div class="order_form">
        <h1>{$lang.order_detail}</h1>
        <h2>{$lang.order_info}</h2>
        <ul>
            <li><b>{$lang.buyer_name} :</b> {$order.buyer_name|escape}</li>
            <li><b>{$lang.seller_name} :</b> {$order.seller_name|escape}</li>
            <!--{if $order.payment_code}-->
            <li><b>{$lang.payment_name}:</b>{$order.payment_name|escape}</li>
            <!--{/if}-->
            <!--{if $order.pay_message}-->
            <li><b>{$lang.pay_message}:</b>{$order.pay_message|escape}</li>
            <!--{/if}-->
            <li><b>{$lang.add_time}:</b>{$order.add_time|date:complete}</li>
            <!--{if $order.pay_time}-->
            <li><b>{$lang.pay_time}:</b>{$order.pay_time|date:complete}</li>
            <!--{/if}-->
            <!--{if $order.ship_time}-->
            <li><b>{$lang.ship_time}:</b>{$order.ship_time|date:complete}</li>
            <!--{/if}-->
            <!--{if $order.finished_time}-->
            <li><b>{$lang.finished_time}:</b>{$order.finished_time|date:complete}</li>
            <!--{/if}-->
            <!--{if $order.postscript}-->
            <li><b>{$lang.postscript}:</b>{$order.postscript|escape}</li>
            <!--{/if}-->
        </ul>
        <div class="clear"></div>
    </div>

    <div class="order_form">
        <h2>{$lang.consignee_info}</h2>
        <ul>
            <li><b>{$lang.consignee}:</b> {$order_extm.consignee|escape}</li>
            <li><b>{$lang.region}:</b> {$order_extm.region_name|escape}</li>
            <li><b>{$lang.zipcode}:</b> {$order_extm.zipcode|escape}</li>
            <li><b>{$lang.phone_tel}:</b> {$order_extm.phone_tel|escape}</li>
            <li><b>{$lang.phone_mob}:</b> {$order_extm.phone_mob|escape}</li>
            <li><b>{$lang.address}:</b> {$order_extm.address|escape}</li>
            <li><b>{$lang.shipping_name}:</b> {$order_extm.shipping_name|escape}</li>
            <!--{if $order.invoice_no}-->
            <li><b>{$lang.invoice_no}:</b> {$order.invoice_no|escape} <!--{if $order.shipping_code and $order.ship_time gt 0}-->
                <a target="_blank" href="{$site_url}/index.php?app=check_shipping&com={$order.shipping_code}&nu={$order.invoice_no}&type=1" class="linkbtn">查看物流</a>
                <!--{/if}--></li>
            <!--{/if}-->
        </ul>
        <div class="clear"></div>
    </div>
    <div class="order_form">
        <h2>{$lang.goods_info}</h2>
        <!--{foreach from=$goods_list item=goods}-->
        <div class="order_info">
            <a href="{$js_site_url}/index.php?app=goods&amp;id={$goods.goods_id}" target="_blank" class="order_info_pic"><img width="50" height="50" alt="{$lang.goods_pic}" src="{$goods.goods_image}" /></a>
            <div class="order_info_text"><a href="{$js_site_url}/index.php?app=goods&amp;id={$goods.goods_id}" target="_blank">{$goods.goods_name|escape}</a><br />{$goods.specification|escape}</div>
            <p><b>{$lang.price} :</b> <span class="red_common">{$goods.price|price}</span></p>
            <p><b>{$lang.quantity} :</b> {$goods.quantity}</p>
        </div>
        <!--{/foreach}-->
        <div class="clear"></div>
    </div>
    <!--{if $order.returns_list}-->
    <div class="order_form">
        <h2>退货商品</h2>
        <!--{foreach from=$order.returns_list item=returns}-->
        <div class="order_info">
            <a href="{$js_site_url}/index.php?app=goods&amp;id={$returns.goods_id}" target="_blank" class="order_info_pic"><img width="50" height="50" alt="{$returns.goods_name|escape}" src="{$returns.goods_image}" /></a>
            <div class="order_info_text"><a href="{$js_site_url}/index.php?app=goods&amp;id={$returns.goods_id}" target="_blank">{$returns.goods_name|escape}</a><br />{$returns.specification|escape}</div>
            <div class="order_info_text" style="width:200px;">
            <strong>退货商品数</strong> : <span>{$returns.quantity}</span><br/>
            <strong>退货原因</strong> : <span>{$returns.returns_reason|escape}</span><br/>
            <strong>退商品金额</strong> : <span class="red_common">{$returns.goods_amount|price}</span><br/>
            <strong>退运费金额</strong> : <span class="red_common">{$returns.shipping_fee|price}</span>
            </div>
        </div>
        <!--{/foreach}-->
        <div class="clear"></div>
    </div>
    <!--{/if}-->
</div>
<iframe name="order" style="display:none;"></iframe>
<script type="text/javascript">
$(function(){
	$('*[ectype="dialog"]').click(function(){
        var id = $(this).attr('dialog_id');
        var title = $(this).attr('dialog_title') ? $(this).attr('dialog_title') : '';
        var url = $(this).attr('uri');
        var width = $(this).attr('dialog_width');
        ajax_form(id, title, url, width);
        return false;
    });	   
});
</script>
{include file="footer.html"}
